package com.xinyue.ext;

/**
 * 验证数据集
 */
public interface EnumData {
	//字段类型：mySQL数据库varchar在5.0.3以后支持最大字符为65535。UTF-8字符最大支持21845。
	public static final String[] javaType = {"Date", "BigDecimal", "Blob", "String", "boolean", "int", "double", "long", "float", "byte", "short", "char"};
	//mysql字段类型（和Java对应）
	public static final String[] mySQLType = {"datetime", "decimal", "longblob", "varchar", "boolean", "integer", "double", "bigint", "float", "tinyint", "smallint", "char"};
	
	//返回类型(returnType+个性化信息)
	public static final String[] returnQuery = {"Bean", "List", "Count"};
	public static final String[] returnQL = {"Map", "List<Object[]>", "Object[]"};//DTO对象自行验证
	public static final String[] returnJava = {"Date", "BigDecimal", "Blob", "String", "Boolean", "Integer", "Double", "Long", "Float", "Byte", "Short", "Character"};
	public static final String[] returnList = {"List<Date>", "List<BigDecimal>", "List<String>", "List<Boolean>", "List<Integer>", "List<Double>", "List<Long>", "List<Float>", "List<Byte>", "List<Short>", "List<Character>"};
	
	//数据库比较符
	public static final String[] dbComparator = {"=", "<>", ">", ">=", "<", "<=", "like"};
	
	//参数类型paramType(入参类型)
	public static final String[] paramJava = {"String", "boolean", "int", "double", "long", "float", "byte", "short", "char", "Date", "BigDecimal"};
	public static final String[] paramMap = {"Map"};
	
	//finder类型
	public static final int query_type = 0;//QUERY
	public static final int hql_type = 1;//HQL
	public static final int sql_type = 2;//SQL
}
